package com.intelligent.health.oauth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/03/18/21:57
 * @Description: 授权服务器
 */
@EnableFeignClients(basePackages = "com.intelligent.health.member.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class HealthOauthApplication {
    public static void main(String[] args) {
        SpringApplication.run(HealthOauthApplication.class, args);
    }

    @Bean
    public BCryptPasswordEncoder getBcryptPasswordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
